locals {
  region                = "cn-shenzhen"
  env                   = "prod"
  name                  = "ack-map-cluster"
  billing               = "team-mapping"
  team                  = "mapping"
}

locals {
  fullname              = "${local.env}-${local.name}"
  tags = {
    Name                = local.fullname
    Environment         = local.env
    Billing             = local.billing
    Team                = local.team
  }
}


# Log, Optional
variable "cluster_addons" {
  type = list(object({
    name      = string
    config    = string
    disabled  = bool
  }))
  default = [
    {
      "name"     = "terway-eniip",
      "config"   = "",
      "disabled": false,
    },
    {
      "name"     = "logtail-ds",
      "config"   = "{\"IngressDashboardEnabled\":\"true\",\"sls_project_name\":\"\"}",
      "disabled": false,
    },
    {
      "name"     = "arms-prometheus",
      "config"   = "",
      "disabled": false,
    },
    {
      "name"     = "nginx-ingress-controller",
      "config"   = "",
      "disabled": true,
    },
    {
      "name"     = "ack-node-problem-detector",
      "config"   = "{\"sls_project_name\":\"prod-ack-map-event\"}",
      "disabled": false,
    }
  ]
}
